package com.nft.service.school.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nft.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value="BookResp对象", description="图书信息出参")
public class BookResp extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "图书信息标题")
    private String title;

    @ApiModelProperty(value = "图书信息内容")
    private String content;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "学科")
    private String subject;

    @ApiModelProperty(value = "分册")
    private String dispart;

    @ApiModelProperty(value = "解析关键字符串")
    private String jxkey;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "图书封面")
    private String bookCover;

    @ApiModelProperty(value = "上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sjTime;

    @ApiModelProperty(value = "是否上架")
    private Boolean isSj;

    @ApiModelProperty(value = "用户图书id")
    private Long userbookId;
}
